package cn.g31010.sip.vo
{
	import com.adobe.serialization.json.JSON;
	
	public class Config
	{
		public function Config()
		{
		}

		
		public var maxCamNum:int=2;
		
		public var maxMicNum:int=2;
		
		public var maxMemberNum:int=10;
		public var hessianTypeName:String = "cn.g31010.sip.pojo.Config";
	
		public function toString():String{
			return JSON.encode(this);
		}
		
		public static function create(obj:Object):Config{
			if(obj==null)
				return null;
			var conf:Config=new Config();
			if(obj.hasOwnProperty("maxCamNum")){
				conf.maxCamNum=int(obj.maxCamNum);
			}
			if(obj.hasOwnProperty("maxMicNum")){
				conf.maxMicNum=int(obj.maxMicNum);
			}
			if(obj.hasOwnProperty("maxMemberNum")){
				conf.maxMemberNum=int(obj.maxMemberNum);
			}
			return conf;
		}
	}
}